{% extends 'TopxiaWebBundle::layout.html.twig' %}

{% set typeTitles = {info:'提示信息'|trans, warning:'警告信息'|trans, error: '错误提示'|trans} %}

{% set title = title|default(typeTitles[type]) %}

{% block title %}{{ title|trans }} - {{ parent() }}{% endblock %}
{% block head_scripts %}{{ script|default('')|raw }}{% endblock %}
{% set script_controller = 'default/message' %}

{% block content %}

<div id="page-message-container" class="page-message-container" data-goto="{{ goto }}" data-duration={{ duration }}>
  <div class="page-message-panel">
    <div class="page-message-heading">
      <h2 class="page-message-title">{{ title|trans }}</h2>
    </div>
    <div class="page-message-body">{{ message|default('')|trans }}</div>
  </div>
</div>
{% endblock %}